package unimelb.distSystems.game.players;

public class RemotePlayer extends PlayerCar {
    //private float steeringValue = 0;
    //private float accelerationValue = 0;
    
    public RemotePlayer(long player_id)
    {
    	super(player_id);
    }

    /*
    public void takeAction(String binding, boolean value, float tpf)
    {
    	if (binding.equals("Lefts")) {
            if (value) {
                steeringValue += .5f;
            } else {
                steeringValue += -.5f;
            }
            player_control.steer(steeringValue);
        } else if (binding.equals("Rights")) {
            if (value) {
                steeringValue += -.5f;
            } else {
                steeringValue += .5f;
            }
            player_control.steer(steeringValue);
        }
    	//note that our fancy car actually goes backwards..
        else if (binding.equals("Ups")) {
            if (value) {
                accelerationValue -= 800;
            } else {
                accelerationValue += 800;
            }
            player_control.accelerate(accelerationValue);
            player_control.setCollisionShape(CollisionShapeFactory.createDynamicMeshShape(geo_tool.findGeom(carNode, "Car")));
        } else if (binding.equals("Downs")) {
            if (value) {
            	accelerationValue += 1600;
            } else {
        		accelerationValue -= 1600;
            }
            player_control.accelerate(accelerationValue);
            player_control.setCollisionShape(CollisionShapeFactory.createDynamicMeshShape(geo_tool.findGeom(carNode, "Car")));
        }
    }
    
    */
}
